<script language="JavaScript1.2" type="text/javascript">
 function addToFavorites() {

 title = "browse current page via proxys";
  // Blogger - Replace with <$BlogItemTitle$>
  // MovableType - Replace with <$MTEntryTitle$>

         url = "javascript:alert('hi')";
 //url = "javascript:window.location=http://localhost:3000/proxying?q=encodeURIComponent(window.location)";
  // Blogger - Replace with <$BlogItemPermalinkURL$>
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }


</script>

<form id="form" action="proxying" method="get">
    <label>Url:</label>
    <input type="text" name="q"/>
</form>

<a href="#" onclick="addToFavorites()">add to favorites</a> <br>
<a href="http://localhost:3000/proxying?q=bbs.uubird.com">bbsuubird</a><br>
<a href="http://localhost:3000/proxying?q=www.javaeye.com">www.javaeye.com</a><br>
